<?php

class Default_IndexController extends Zend_Controller_Action {

    private $_noticiaModelo;

    public function init()
    {
        $this->view->headLink(array('type' => 'image/x-icon', 'rel' => 'shortcut icon', 'href' => '/images/favicon.ico'), 'APPEND');
        $this->view->headLink()->appendStylesheet('/css/index.css');
        
        $this->_noticiaModelo = new admin_Model_NoticiaMapper();
    }

    public function preDispatch()
    {
        $this->_helper->layout->disableLayout();
    }

    public function indexAction()
    {
        $this->view->titulo = 'Marquee Studios';
        $this->view->noticias = $this->_noticiaModelo->obtenerTodos(4);
    }


}

